#include <stdio.h>
int main()
{
	int t = 0;
	scanf("%d", &t);
	int h = t / 3600;
	t = t % 3600;
	int m = t / 60;
	int s = t % 60;
	printf("%d:%d:%d", h, m, s);
	return 0;
}
